import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class SOne extends HttpServlet {
    protected void doGet(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException {
        res.setContentType("text/html;charset=UTF-8");
        PrintWriter out = res.getWriter();
            System.out.println("i am SOne Servlet");
            out.println("<h1> i am from SOne Servlet</h1>");
            RequestDispatcher rd=req.getRequestDispatcher("/STwo");
            rd.include(req,res);
            //rd.forward(req, res);
            out.close();
        }
}